<div class="panel panel-success reg-panel" style="margin:1% 1% 1% 1%;">
    <div class="panel-heading">
        <h3 class="panel-title">注册江苏大学信息站</h3>
    </div>
    <div style="margin:0% 5% 5% 5%;">
        <div class="login-top"></div><br> <b>请输入您的账号信息以注册本站</b><br><br>
        <form name="f" method="post" action="index.php?mod=admin:reg" onsubmit="return check_pwd();">
            <div class="input-group">
                <span class="input-group-addon">用户名</span>
                <input type="text" class="form-control" name="user" required="">
            </div><br>
            <div class="input-group">
                <span class="input-group-addon">密码</span>
                <input type="password" class="form-control" name="pw" id="pw" required="">
            </div><br>
            <div class="input-group">
                <span class="input-group-addon">再次输入密码</span>
                <input type="password" class="form-control" name="rpw" id="rpw" required="">
            </div><br>
            <div class="input-group">
                <span class="input-group-addon">邮箱地址</span>
                <input type="email" class="form-control" name="mail" id="mail" required="">
            </div><br>
            <div class="input-group">
                <span class="input-group-addon">真实姓名</span>
                <input type="text" class="form-control" name="realname" id="realname" required="">
            </div>
            <div class="login-button"><br>
                <button type="submit" class="btn btn-primary" style="width:100%;float:left;">继续注册</button>
            </div><br><br><br>

        </form>
    </div>
</div>

<script>
    function check_pwd() {
        if ($('#rpw').val() != $('#pw').val()) {
            alert('注册失败：两次输入的密码不一致，请重新输入');
            return false;
        }
        return true;
    }
</script>
